package com.cqu.hhx.driver.service;

import com.cqu.hhx.driver.entity.*;
import com.cqu.hhx.driver.entity.forWeb.ChangeReq;

import java.sql.Date;
import java.util.List;

/**
 * @author DJ
 * @create 2020-05-26 21:55
 */
public interface ManageService {
    //司机信息
    public Integer deleteDriver(Long driverId);
    public Integer updateDriver(Long driverId, ChangeReq changeReq);
    public Integer resetDriverPassword(Long driverId);
    public Driver getDriverInfoByPhone(String phone);
    //乘客信息
    public Integer resetCustomerPassword(Long customerId);
    public Integer deleteCustomer(Long customerId);
    public Integer updateCustomer(Long customerId,ChangeReq changeReq);
    public Customer getCustomerInfoByPhone(String phone);
    public Customer getCustomerInfoById(Long customerId);

    //通过日期获取订单
    public List<FinishOrder> getCustomerFinishedOrder(Date selectedDay,Long customerId);
    public List<FinishOrder> getDriverFinishedOrder(Date selectedDay,Long driverId);
    public List<FinishOrder> getAllFinishOrderByDate(Date selectedDay);
    public List<DoingOrder> getAllDoingOrder();
    public List<NewOrder> getAllNewOrder();


}
